#define _CRT_SECURE_NO_WARNINGS 1 
#include"SList.h"

void test() {
	SLTNode* plist = NULL;
	SListPushBack(&plist, 1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPrint(plist);
	/*SListPushFront(&plist, 10);
	SListPrint(plist);
	SListPopBack(&plist);
	SListPrint(plist);
	SListPopFront(&plist);
	SListPrint(plist);*/
	SLTNode* pos = SListFind(plist, 3);
	if( pos!= NULL) {
		SListPushInsert(&plist, pos, 30);
	}
	SListPrint(plist);

	pos = SListFind(plist, 1);
	if (pos != NULL) {
		SListPushInsert(&plist, pos, 10);
	}
	SListPrint(plist);
	/*pos = SListFind(plist, 1);
	if (pos != NULL) {
		SListPopErase(&plist, pos);
	}
	SListPrint(plist);*/
}
int main() {
	test();
	return 0;
}
